<template>
	<div @click="showMsg">这是m-message页面</div>
</template>
<script>
import "./index.css";
import msg from "./index.js";
import {MessageBox} from "../../ui-components";

export default {
	methods: {
		showMsg() {
			// MessageBox.alert({
			// 		title: '提示',
			// 		message: '确定执行此操作?',
			// 		showCancelButton: true,
					
			// 	}).then(resolve => {}, reject => {});
			// MessageBox.alert("caozuo", "title").then(resolve => {}, reject => {});
			msg.confirm().then(() => {
				console.log("这是确定事件");
			});
		}
	}
}
</script>

